<?php

namespace App\Http\Controllers;

use App\Services\HomeService;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;

class HomeController extends Controller
{
    public function index(Request $request,HomeService $homeService){
        $data = $validatedData = $request->validate([
            'select' => [
                'required',
                Rule::in([1,2,3]),
            ]
        ]);
        $res = $homeService->myTask($data['select']);
        dd($res);
    }
}
